]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Use AppFolderDialog grabHelper to obtain key focus on popup()
authorsorelz <sorelz.zen498@passinbox.com>
Tue, 2 Jul 2024 20:17:35 +0000 (16:17 -0400)
committersorelz <sorelz.zen498@passinbox.com>
Sun, 21 Jul 2024 18:24:57 +0000 (14:24 -0400)
When an app folder is opened it would do so without grabbing the
keyboard focus, so one could not navigate with the arrow keys without
pressing Tab. This adds the focus parameter to popup()'s grab, which
sets the key focus to the elements of the folder when it is opened.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3338>

js/ui/appDisplay.js

index b3946cd6657dbc004d52e4c2787c302f354fa9d1..0ca36bb5d68b15362d6babac94644c0806eae2f8 100644 (file)
@@ -2899,6 +2899,7 @@ export const AppFolderDialog = GObject.registerClass({
 
         this._isOpen = this._grabHelper.grab({
             actor: this,
+            focus: this._editButton,
             onUngrab: () => this.popdown(),
         });